package com.lemon.stock.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.material.primarySurface
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color

@Composable
fun StockTheme(
    darkTheme: Boolean = isSystemInDarkTheme(),
    content: @Composable () -> Unit
){
    val colors = if (darkTheme) {
        DarkPalette
    } else {
        LightPalette
    }
    MaterialTheme(
        colors = colors,
        //typography = typography,
        //shapes = shapes,
        content = content
    )
}

private val DarkPalette = darkColors(

    primary = Color.Yellow,
    primaryVariant = Color.Yellow,
    secondary = Color.Yellow,
    background = Color.Yellow,
    surface = Color.Yellow,

)
private val LightPalette = lightColors(
    primary = red500,
    primaryVariant = red700,
    secondary = Color.Blue,
    background = Color.White,
    surface = Color.White,
    onPrimary = Color.White,
    onSecondary = Color.Black,
    onBackground = Color.Black,
    onSurface = Color.Black
)